/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconToday: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M512 413.568h393.856c32.64 0 59.072 26.432 59.072 59.072v393.792a59.072 59.072 0 0 1-59.072 59.136H512a59.072 59.072 0 0 1-59.072-59.136V472.64c0-32.64 26.432-59.072 59.072-59.072z m0 39.36a19.712 19.712 0 0 0-19.712 19.712v393.792c0 10.88 8.832 19.712 19.712 19.712h393.856a19.712 19.712 0 0 0 19.712-19.712V472.64a19.712 19.712 0 0 0-19.712-19.712H512z"
        fill={getIconColor(color, 0, '#333333')}
      />
      <path
        d="M792.448 585.984a39.424 39.424 0 1 1 55.68-55.68 39.424 39.424 0 0 1-55.68 55.68z m-111.36 111.36a39.36 39.36 0 1 1 54.72-56.64 39.36 39.36 0 0 1-54.72 56.704zM569.6 808.896a39.424 39.424 0 1 1 55.68-55.744 39.424 39.424 0 0 1-55.68 55.68zM407.808 686.272a19.712 19.712 0 0 1-27.904 0l-278.4-278.464a19.712 19.712 0 0 1 0-27.904l278.4-278.4a19.712 19.712 0 0 1 27.904 0l268.416 268.352 27.84-27.84L435.648 73.6a59.072 59.072 0 0 0-83.584 0L73.6 352.128a59.072 59.072 0 0 0 0 83.52l278.4 278.464a59.072 59.072 0 0 0 83.584 0l13.952-13.888-27.84-27.84-13.952 13.952z"
        fill={getIconColor(color, 1, '#333333')}
      />
      <path
        d="M310.336 421.696a39.424 39.424 0 1 1-55.744-55.68 39.424 39.424 0 0 1 55.68 55.68z m111.36-111.36a39.424 39.424 0 1 1-55.68-55.744 39.424 39.424 0 0 1 55.68 55.68z m0 222.72a39.424 39.424 0 1 1-55.68-55.68 39.424 39.424 0 0 1 55.68 55.68z"
        fill={getIconColor(color, 2, '#333333')}
      />
    </svg>
  );
};

IconToday.defaultProps = {
  size: 22,
};

export default IconToday;
